//
//  BDHomeModel.h
//  BadBoy
//
//  Created by wen on 2017/3/13.
//  Copyright © 2017年 com.8xiong. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MJExtension/MJExtension.h>
#import "BDUserModel.h"

typedef NS_ENUM(NSUInteger, BDMeractenType) {
    BDMeractenTypeLock,
    BDMeractenTypeUnlock,
    BDMeractenTypeNomeracten
};

@interface BDHomeModel : NSObject

@property (nonatomic, assign) NSInteger my_id;
@property (nonatomic, assign) NSInteger category;
@property (nonatomic, strong) NSString *post;
@property (nonatomic, strong) NSArray *images;
@property (nonatomic, assign) NSInteger status;
@property (nonatomic, assign) CGFloat price;
@property (nonatomic, assign) NSInteger repost_id;
@property (nonatomic, strong) NSString *created_at;
@property (nonatomic, strong) NSString *updated_at;
@property (nonatomic, strong) NSString *shop;
@property (nonatomic, strong) NSString *address;
@property (nonatomic, strong) NSString *longitude;
@property (nonatomic, strong) NSString *latitude;
@property (nonatomic, strong) NSDictionary *points;
//联系方式
@property (nonatomic, strong) NSString *contact;
//消费数目
@property (nonatomic, strong) NSString *consumption;
//消费时间
@property (nonatomic, strong) NSString *consumed_at;

//针对转帖和非转帖两种情况
@property (nonatomic, strong) BDUserModel *user;
@property (nonatomic, strong) NSString *cover;
@property (nonatomic, strong) NSString *nickname;
@property (nonatomic, assign) NSInteger user_id;
@property (nonatomic, assign) NSInteger vip_level;
//转帖内容
@property (nonatomic, strong) BDHomeModel *repost;

//判断是否购买该帖子
@property (nonatomic, strong) NSArray *purchase;
@property (nonatomic, assign) BOOL isPurchase;

//判断是否购买转帖
@property (nonatomic, strong) NSArray *repost_purchase;

//转发次数
@property (nonatomic, assign) NSInteger repostCount;
//评论次数
@property (nonatomic, assign) NSInteger commentCount;
//点赞次数
@property (nonatomic, assign) NSInteger praiseCount;
//分享次数
@property (nonatomic, assign) NSInteger sharedCount;
//是否收藏
@property (nonatomic, assign) BOOL fav;
//是否点赞
@property (nonatomic, assign) BOOL praise;
//是否关注
@property (nonatomic, assign) BOOL is_follow;
@property (nonatomic, assign) BOOL is_public;
@property (nonatomic, assign) BOOL haveShopInfo;
@property (nonatomic, assign) BOOL free;
@property (nonatomic, assign) BOOL haveMeracten;
@property (nonatomic, assign) BDMeractenType meractenType;

@property (nonatomic, assign) CGFloat cellHeight;
@property (nonatomic, assign) CGFloat contentHeight;
@property (nonatomic, assign) CGFloat imageHeight;
@property (nonatomic, assign) CGFloat forwardHeight;
@property (nonatomic, assign) CGFloat merachantHeight;
@property (nonatomic, assign) BOOL needOpen;
@property (nonatomic, assign) BOOL isOpen;
@property (nonatomic, assign) BOOL isDetail;

@property (nonatomic, assign) BOOL needDisplayDate;

@property (nonatomic, assign) BOOL isFreez;
@end
